import request from "@/request/";

// 获取列表
export const getList = (data) => {
  return request({
    url: "/api/mes-warehouse-service/scrap-bill/pc/page",
    method: "POST",
    data,
  });
};

// 查看详情
export const getDetail = (data) => {
  return request({
    url: "/api/mes-warehouse-service/scrap-bill/detail/pc/page",
    method: "POST",
    data,
  });
};

// 查看详情明细
export const getDetailTable = (data) => {
  return request({
    url: "/api/mes-warehouse-service/scrap-bill/detail/barcode/pc/page",
    method: "POST",
    data,
  });
};

//打印
export const getPrintData = (data) => {
  return request({
    url: "/api/mes-warehouse-service/scrap-bill/print",
    method: "POST",
    data,
  });
};

export const getEnum = (keyList) => {
  return request({
    url: "/api/mes-warehouse-service/preset/enum/list",
    method: "POST",
    data: {
      keyList,
    },
  });
};
